import 'package:stacked/stacked.dart';

/// 导航中心视图模型
/// 管理底部导航栏的状态和页面切换逻辑
class NavigationHubViewModel extends BaseViewModel {
  int _currentIndex = 0;
  int get currentIndex => _currentIndex;

  /// 切换页面索引
  void switchToPage(int index) {
    if (_currentIndex != index) {
      _currentIndex = index;
      notifyListeners();
    }
  }
}
